home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!amdev.demon.co.uk
- From: Simon Brown <simes@amdev.demon.co.uk>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Directing files to a con: or similar
- Date: Wed, 14 Feb 96 20:48:38 GMT
- Message-ID: <9602142048.AA00fp4@amdev.demon.co.uk>
- References: <9602131939.AA003j6@ozzy.demon.co.uk>
- X-NNTP-Posting-Host: amdev.demon.co.uk
- X-WordOfTheDay: Turgid.
- X-Newsreader: ADMaN 1.7 Copyright 1995 S.T.Brown
- X-Mail2News-Path: disperse.demon.co.uk!post.demon.co.uk!amdev.demon.co.uk
-
- From the frantic fingers of Brian Skreeg:
-
- > Hi folks,
- >
- > I'm writing an IRC bot at the moment but seem to have got stuck right at the
- > beginning. I'm using Open() to open a file called TCP:dismayl/6667 <-server
- > and the file opens OK. Thing is I can't see what's going on. What's the easiest
- > way to direct this file to a con: or similar for viewing what it's up to?
- > I'm also wanting a Gadtools GUI on the front of this beastie so I can
- > add easy updating of commands etc. What is the easiest way to do a loop in
- > C so I can have the file updating in realtime but still be able to check for
- > gadgets.
- > At the mo I've got that Wait(1<<sigbit.thinummie) in so this halts my
- > program till a gadget is clicked. No good.
-
- One possibility would be to make the window respond to IDCMP_INTUITICKS
- messages, which get sent approx. ten times a second. Then you could do a
- quick bit of updating in the intuitick handler and drop back to the event
- loop again. Obviously you wouldn't want to do too much work in this bit of
- code, as it'd lock the gadgets out while it was working.
-
- --
- Simon Brown <simes@amdev.demon.co.uk> // Amazing Developments - When we
- http://uptown.turnpike.net/S/simes/ \X/ develop something, it's amazing.
-
- Amazing Developments - When we develop something, it's amazing.
-
-